import { PartialType } from '@nestjs/swagger';
import { CreateCertificateDto } from './create-certificate.dto';
import { ApiPropertyOptional } from '@nestjs/swagger';

export class UpdateCertificateDto extends PartialType(CreateCertificateDto) {
  @ApiPropertyOptional({
    description: '医师资格证书标题',
    example: '2025 年度医师资格证书',
    default: '未命名证书',
  })
  title?: string;

  @ApiPropertyOptional({
    description: '报名时间',
    example: '2025-05-01 至 2025-05-31',
    default: '未指定报名时间',
  })
  registrationTime?: string;

  @ApiPropertyOptional({
    description: '考试介绍',
    example: '本次考试涵盖基础医学、临床医学等多个科目',
    default: '暂无考试介绍',
  })
  examIntroduction?: string;

  @ApiPropertyOptional({
    description: '考试大纲',
    example: '考试大纲包含理论知识和实践操作两部分',
    default: '暂无考试大纲',
  })
  examSyllabus?: string;

  @ApiPropertyOptional({
    description: '考试日程',
    example: '理论考试：2025-06-15，实践考试：2025-07-01',
    default: '暂无考试日程',
  })
  examSchedule?: string;

  @ApiPropertyOptional({
    description: '真题下载链接',
    example: 'https://example.com/past-papers.zip',
    default: '暂无真题下载链接',
  })
  pastPapersDownload?: string;

  @ApiPropertyOptional({
    description: '医考百问内容',
    example: '常见问题及解答...',
    default: '暂无医考百问内容',
  })
  medicalExamQa?: string;
}
